<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>java</title>
        <link rel="stylesheet" href="/static/css/style.css"/>
    </head>
    <body>

        <div class="n-support">请使用Chrome、Safari等webkit内核的浏览器！</div><div class="n-head">
            <div class="g-doc f-cb">
                <div class="user">
                    <#if flag == 1>
                        ${msg} <a href="/logout">[退出]</a>
                    <#elseif flag == 2>
                        ${msg} <a href="/logout">[退出]</a>
                    <#else>
                        请<a href="/toLogin">[登录]</a>
                    </#if>
                </div>
                <ul class="nav">
                    <#if flag == 1>
                        <li><a href="/api/sellerindex">首页</a></li>
                        <li><a href="/api/public">发布</a></li>
                    <#elseif flag == 2>
                        <li><a href="/api/buyerindex">首页</a></li>
                        <li><a href="/api/toAccount">账务</a></li>
                        <li><a href="/api/toSettleAccount">购物车</a></li>
                    <#else>
                        <li><a href="/">首页</a></li>
                    </#if>
                </ul>
            </div>
        </div>

        <div class="g-doc">
            <div class="m-tab m-tab-fw m-tab-simple f-cb">
                <div class="tab">
                    <ul>
                        <li class="z-sel" ><a href="/">所有内容</a></li>
                    </ul>
                </div>
            </div>

            <div class="n-plist">
                <ul class="f-cb" id="plist">
                    <#list books as book>
                        <li id="p-${book_index+1}">
                            <a href="/api/show?id=${book.id}" class="link">
                                <div class="img"><img src="${book.picture}" alt="${book.title}"></div>
                                <h3>${book.title}</h3>
                                <div class="price"><span class="v-unit">¥</span><span class="v-value">${book.price}</span></div>
                            </a>
                        </li>
                    </#list>
                </ul>
            </div>

        </div>



        <div class="n-foot">
            <p>版权所有：网易云课堂<a href="http://mooc.study.163.com/smartSpec/detail/85002.htm">Java开发工程师(Web方向)</a>微专业团队</p>
        </div>
        <script type="text/javascript" src="/js/global.js"></script>
        <script type="text/javascript" src="/js/pageIndex.js"></script>
    </body>
</html>